﻿<Window x:Class="Brjnk.GpxExplorer.UI.SimplifyTrackWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:Brjnk.GpxExplorer.Localization"
        FocusManager.FocusedElement="{Binding ElementName=cancelButton}"
        WindowStartupLocation="CenterOwner"
        Title="SimplifyTrackWindow" SizeToContent="WidthAndHeight" MinWidth="300" DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}">
    <Grid>
        <!---->
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <CheckBox Grid.ColumnSpan="2" Content="{l:Loc simplifyKeepElevationLocalExtremes }" IsChecked="{Binding KeepElevationLocalExtremes}" />
        <TextBlock Grid.Row="1" Grid.ColumnSpan="2" Text="{l:Loc simplifyTrackMaxDistance}" />
        <TextBox Style="{StaticResource HeaderTextBoxStyle}" Grid.Row="2" Grid.ColumnSpan="2" Text="{Binding MaxDistance}" />
        <TextBlock Style="{StaticResource SmallWarningStyle}" Grid.Row="3" Grid.ColumnSpan="2" Text="{l:Loc simplifyTrackWarning}" />
        <Button IsCancel="True" Grid.Row="4" Content="{l:Loc cancel}" HorizontalAlignment="Right" Click="Button_Click_1" Name="cancelButton" />
        <Button IsDefault="True" Grid.Row="4" Grid.Column="1" Content="{l:Loc ok}" HorizontalAlignment="Right" Click="Button_Click" />
    </Grid>
</Window>